<table class="table table-hover">
  <thead>
    <tr>
      <th>ID</th>
      <th>名称</th>
      <th>发布时间</th>
      <th>状态</th>
      <th>操作</th>
    </tr>
  </thead>
  <tbody>
    <volist name="distributionShopArticleLists" id="vo">
      <tr>
        <td>{$vo.id}</td>
        <td>{$vo.name}</td>
        <td>{$vo.createTime|date="Y-m-d H:m", ###}</td>
        <td class="status">{$vo["status"]?"正常":"禁止"}</td> 
        <td>
          <a class="btn btn-primary btn-xs" href="__CONTROLLER__/modify/id/{$vo.id}">修改</a>
          <a class="btn btn-primary btn-xs clip" href="javascript:void(0)" id="copyUrl_{$vo.id}" data-url="{$vo.articleUrl}">复制活动地址</a>
          <a class="btn btn-info btn-xs action-status" data-action-id="{$vo.id}" data-action-txt="执行中……" data-action-status="{$vo.status}" data-action-status-txt="正常 禁止" data-action-url="__CONTROLLER__/setStatus">{$vo["status"]?"禁止":"正常"}</a>
          <a class="btn btn-danger btn-xs actionds" data-action-id="{$vo.id}" data-action-txt="移除中……" data-action-url="__CONTROLLER__/remove">移除</a>
        </td>
      </tr>
    </volist>
  </tbody>
</table>
<div class="pagination">{$pagination}</div>

<script type="text/javascript" src="__PUBLIC__/Style/Common/js/ZeroClipboard.js"></script>
<script>
    $(function() {
        $('.clip').each(function(i, elem) {
            $().copyPaste({
                text: $(elem).attr('data-url'),
                id: $(elem).attr("id")
            });

        })
    });
</script>
    
